package com.support.android.myapp3.util;

import android.graphics.Color;
import android.text.TextUtils;

import java.math.BigDecimal;

public class Utils {

    public static int getColor(String colorStr) {
        if (TextUtils.isEmpty(colorStr)) return Color.BLACK;
        if (!colorStr.startsWith("#")) colorStr = "#" + colorStr;
        return Color.parseColor(colorStr);
    }

}
